/*
 * @Date: 2023-03-12 13:43:48
 * @LastEditors: Zireael 1193875164@qq.com
 * @LastEditTime: 2023-03-24 15:02:35
 * @FilePath: \A19\backend\src\shared\protocols\Experiment\PtlGetUserExps.ts
 */
import { ObjectId } from "mongodb";
import { BaseRequest, BaseResponse, BaseConf } from "../base";
import { userExperiments } from '../../types/userExperiments';
import { users } from "../../types/user";
import { codeAnswer } from "../../types/userExperiments";

export interface ReqGetUserExps extends BaseRequest {
    student?:ObjectId;
    experiment?:ObjectId;
}

export interface ResGetUserExps extends BaseResponse {
    exps?:ObjectId[]
    exp?:userExperiments | null
    commitedUserExps?:{
        _id: ObjectId;
        student: users[];
        experiment: ObjectId;
        submitTime: Date;
        score: number;
        answers: codeAnswer[];
    }[]
}

export const conf: BaseConf = {
    
}